package com.monika.service.controller;

import com.monika.main.system.domain.entity.LoginUser;
import com.monika.main.system.util.SecurityUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author:whh
 * @date: 2024-03-13 20:56
 * <p></p>
 */
@Controller
public class CommonController {


    /**
     * 跳转到登录页面
     * @return
     */
    @GetMapping("/login")
    public String loginPage(){
        return "login";
    }

    @GetMapping("/index")
    public String indexPage(){
        return "index";
    }

    @GetMapping("/welcome")
    public String welcome(){
        LoginUser loginUser = SecurityUtil.getLoginUser();
        return "welcome";
    }

}
